<!--回弹业务数据字典---回弹仪器设备管理---查看-->
<template>
  <div class="department" id="department">
    <!-- 右侧 -->
    <div class="department_right">
      <!-- 顶部导航栏 -->
      <div class="mechanism_nav">
        <!-- 左侧 -->
        <div class="mechanism_nav_left">
          <el-radio-group
            v-model="radio"
            size="small"
            @change="modelType($event)"
          >
            <el-radio-button label="待办"></el-radio-button>
            <el-radio-button label="已办"></el-radio-button>
            <!-- #2b5a9d -->
          </el-radio-group>
        </div>
        <!-- 顶部按钮 -->
        <div class="print">
          <div class="printTable">
            <el-button
              type="primary"
              icon="el-icon-refresh"
              size="small"
              @click="yj_searchForm(getList)"
            ></el-button>
            <el-button
              type="primary"
              icon="el-icon-circle-plus-outline"
              size="small"
              v-if="getList.modelType == '0' && yj_add == true"
              @click="edit('新增')"
              >新增</el-button
            >
            <el-button
              type="primary"
              icon="el-icon-edit"
              size="small"
              v-if="getList.modelType == '0' && yj_edit == true"
              @click="edit('编辑')"
              >编辑</el-button
            >
            <el-button
              type="primary"
              icon="el-icon-circle-check"
              size="small"
              v-if="getList.modelType == '0' && yj_submit == true"
              @click="SubmitText(fId)"
              >提交</el-button
            >
            <!-- <el-button
              type="primary"
              icon="el-icon-document-checked"
              size="small"
              v-if="getList.modelType == '0' && yj_aduit == true"
              @click="edit('审核')"
              >审核</el-button
            > -->
            <el-button
              type="primary"
              icon="el-icon-delete"
              size="small"
              v-if="getList.modelType == '0' && yj_delete == true"
              @click="rowDelete(fId)"
              >删除</el-button
            >
          </div>
        </div>
      </div>

      <!-- 表格 -->
      <div class="text_table">
        <tableData
          :height="navigatepageNums > 1 ? 'calc(100% - 50px)' : '100%'"
          :config="table_config"
          :dataList="tableData"
          :loading="loading"
          @selection-change="selectionChange"
          @sort-change="sortChange"
          @click-change="rowChange"
          @ClickOnLine="yj_viewForm"
          :page="getList.page"
          :pageSize="getList.pageSize"
        />
        <pagination
          v-if="navigatepageNums > 1"
          :info="queryCriteriaData"
          :treelength="treelength"
          :total="queryCriteriaData.total"
          :pageNum.sync="getList.page"
          :limit.sync="getList.pageSize"
          @pagination="yj_searchForm(getList)"
        />
      </div>
      <!--配合比通知单编号弹框 查看 -->
      <div class="Control-1 mechanism_dialogS closure">
        <el-dialog
          :title="dialogTitle"
          :modal-append-to-body="false"
          v-dialogDrag
          :visible.sync="dialogEditVisible"
          v-loading="loadingEditDialog"
          element-loading-text="拼命加载中"
          element-loading-spinner="el-icon-loading"
          element-loading-background="rgba(0, 0, 0, 0.2)"
        >
          <div
            class="dialogBody common"
            :style="{ height: '650px' }"
            style="overflow: hidden"
          >
            <div style="margin-bottom: 20px; height: 100%">
              <div class="baseTitle">质量管理责任人</div>
              <div
                class="publicForm"
                style="height: calc(100% - 80px); overflow-y: auto"
              >
                <publicForm
                  ref="publicForm0"
                  lableWidth="95px"
                  :formObj="formObjShow"
                  :formData="formData"
                  @selectChange="selectChange"
                  @inputChange="inputChange"
                  @inputFocus="inputFocus"
                >
                </publicForm>
              </div>
              <div style="height: 50px"></div>
            </div>
          </div>
          <div class="newlyAdded_btn" v-if="btnShow">
            <el-button type="primary" @click="yj_saveForm()">保存</el-button>
            <!-- <el-button type="primary" v-else @click="yj_saveForm(1)"
              >审核保存</el-button
            > -->
            <el-button type="warning" @click="dialogEditVisible = false"
              >关闭</el-button
            >
          </div>
        </el-dialog>
      </div>
      <!-- 根据组织机构树选人 -->
      <div class="Control-1 mechanism_dialogS closure">
        <el-dialog
          :title="candidate"
          :modal-append-to-body="false"
          v-dialogDrag
          :visible.sync="dialogEditVisibleTree"
          v-loading="loadingEditDialogTree"
          element-loading-text="拼命加载中"
          element-loading-spinner="el-icon-loading"
          element-loading-background="rgba(0, 0, 0, 0.2)"
        >
          <div
            class="dialogBody common"
            :style="{ height: '650px' }"
            style="overflow: hidden; width: 100%"
          >
            <div style="margin-bottom: 20px; height: 100%; width: 100%">
              <div
                class="publicForm addMemberCheckBox"
                style="height: calc(100% - 40px); overflow-y: auto; width: 100%"
              >
                <div class="addMemberCheckTree">
                  <div class="companyBox">
                    <el-tree
                      :data="companyInfo"
                      :props="defaultProps"
                      @node-click="selectCompany"
                      :highlight-current="highlightBd"
                    ></el-tree>
                  </div>
                  <div class="departmentBox">
                    <div
                      class="departmentTitle"
                      v-for="(item, index) in departmentList"
                      :key="index"
                      @click="seletDepartment(item, index)"
                    >
                      <a
                        href="javascript:;"
                        :class="num === item.fDepartmentId ? 'activetext' : ''"
                        :title="item.fShortName"
                      >
                        {{ item.fShortName }}</a
                      >
                    </div>
                  </div>
                </div>

                <div class="addMemberCheckLeft">
                  <el-radio-group
                    v-model="checkboxGroup1"
                    @change="selectRealname($event, personList)"
                  >
                    <el-radio-button
                      v-for="item in personList"
                      :label="item.fUserid"
                      :key="item.fUserid"
                      :value="item.fRealname"
                    >
                      <div class="addMemberCheck">
                        <div class="MemberIcon">
                          <img :src="item.fGender == 0 ? girls : boys" alt="" />
                        </div>
                        <div class="MemberDetailInfos">
                          <div class="name">{{ item.fRealname }}</div>
                          <div class="hostName">{{ item.fDepartmentName }}</div>
                          <div class="hostName">{{ item.fAccount }}</div>
                        </div>
                      </div>
                    </el-radio-button>
                  </el-radio-group>
                </div>
              </div>
            </div>
          </div>
          <div class="newlyAdded_btn" v-if="btnShow">
            <el-button type="primary" @click="submitMember()">保存</el-button>
            <el-button type="warning" @click="dialogEditVisibleTree = false"
              >关闭</el-button
            >
          </div>
        </el-dialog>
      </div>
    </div>
  </div>
</template>

<script>
import {
  getQualityDutyLists, //列表
  getQualityDutyByFid, //详情
  saveQualityDuty, //保存
  deleteQualityDuty, //删除
  commitQualityDuty, //提交
  // aduitQualityDutyStation, //总工审核接口
  getBaseDepartmentUser, //调人员
  getUserCompanyTreeList, //树结构
} from "@/api/request.js";
import TableData from "@/components/stationProductionPage/HntManage/el-tables"; //主页面列表
import Pagination from "@/components/public/el-pagination"; //主页面分页
import publicForm from "@/components/public/el-form.vue"; //弹框form
import formJs from "./regexDetail.js"; //新增弹框配置项

export default {
  inject: ["reload"],
  name: "stationQualityListText",
  data() {
    return {
      name: "stationQualityListText",
      // 分页
      navigatepageNums: null, //是否显示分页
      queryCriteriaData: {},
      // 分页
      // yj_view: null,
      yj_add: null,
      yj_edit: null,
      yj_delete: null,
      yj_submit: null,
      // yj_aduit: null,
      radio: "待办",
      // 列表
      getList: {
        fCompanyid: "", // 查询条件项目名称id
        page: 1, // 当前页码
        pageSize: 20, // 每页显示条数
        userId: "", // 查询待办或已办时传 列表页查询不传
        modelType: "0", // 0-待办 1-已办 传2 表示列表页查询
        fQualitygridtype: "", // 质量网格类别
        fProjectposition: "", // 工程部位
      },
      fId: null, //当前行数据fId
      loading: false, //列表转载
      table_config: formJs.table_configText,
      tableData: [], //表格列表数据列表
      // 列表

      // 弹框
      timeYMD: null, //当前日期
      btnShow: true,
      dialogTitle: "",
      loadingEditDialog: false, //弹框loading
      dialogEditVisible: false, //新增弹框是否显示
      formObjShow: null, //场站质量管理网格
      formObj: formJs.formObj,
      formObjLook: formJs.formObjLook,
      formData: formJs.formData,
      saveData: null,

      // 树选人
      dialogEditVisibleTree: false,
      loadingEditDialogTree: false,
      companyInfo: [], //公司树信息
      highlightBd: true,
      defaultProps: {
        children: "children",
        label: "fShortname",
      },
      departmentList: [], //部门
      num: null,
      personList: [], //人员列表新增
      checkboxGroup1: [],
      boys: require("@/assets/img/organization/boys.png"),
      girls: require("@/assets/img/organization/girls.png"),
      newData: null,
      treeText: {
        companyId: null,
        userId: null,
      },
      propText: null,
      candidate: null,
      // 树选人

      // 弹框

      userInfo: {}, //登录用户
    };
  },
  components: {
    TableData, //主页面列表
    Pagination, //分页
    publicForm, //表单
  },
  created() {
    this.userInfo = JSON.parse(sessionStorage.getItem("yjSmart-userInfo"));
    console.log("userInfo", this.userInfo);
  },
  mounted() {
    this.getList = {
      fCompanyid: "", // 查询条件项目名称id
      page: 1, // 当前页码
      pageSize: 20, // 每页显示条数
      userId: this.userInfo.userId, // 查询待办或已办时传 列表页查询不传
      modelType: "0", // 0-待办 1-已办 传2 表示列表页查询
      fQualitygridtype: "", // 质量网格类别
      fProjectposition: "", // 工程部位
    };
    this.getHeight();
    this.getData();
    this.yj_searchForm(this.getList);
    this.btnRole(this.name);

    this.table_config.operation.cols = [
      {
        prop: "fStatus",
        type: "primary",
        handleRow: this.handleRow,
      },
    ];
    this.table_config.operation["specialClass"] = function (rowData) {
      var color = null;
      if (rowData == "未提交") {
        color = "red !important";
      } else if (rowData == "已完成") {
        //  {
        //   color = "#409eff !important";
        // } else if (rowData == "运输中") {
        //   color = "#e6a23c  !important";
        // }
        color = "green !important";
      }
      return color;
    };
  },
  methods: {
    btnRole(name) {
      var btnList = [];
      var ModuleList = JSON.parse(sessionStorage.getItem("yjSmart-ModuleList"));
      if (ModuleList.length > 0) {
        ModuleList.map((item) => {
          if (item.fEncode == name) {
            btnList = item.modulebuttonList;
          }
        });
        var btnStr = [];
        btnList.map((item) => {
          btnStr.push(item.fEncode);
        });
        this.yj_add = btnStr.includes("yj_add");
        this.yj_edit = btnStr.includes("yj_edit");
        this.yj_delete = btnStr.includes("yj_delete");
        this.yj_submit = btnStr.includes("yj_submit");
        // this.yj_aduit = btnStr.includes("yj_aduit");
      } else {
        this.yj_add = true;
        this.yj_edit = true;
        this.yj_delete = true;
        this.yj_submit = true;
        // this.yj_aduit = true;
      }
    },

    modelType(e) {
      this.fId = "";
      this.row = "";
      if (e == "待办") {
        this.getList.modelType = "0";
        this.getList.userId = this.userInfo.userId;
      } else {
        this.getList.modelType = "1";
        this.getList.userId = this.userInfo.userId;
      }
      this.yj_searchForm(this.getList);
    },
    // 获取列表数据
    yj_searchForm(id) {
      this.loading = true;
      getQualityDutyLists(id)
        .then((res) => {
          if (res.errcode == 0) {
            var that = this;
            that.loading = false;
            that.tableData = res.data.pageInfo.list;
            that.queryCriteriaData = res.data.pageInfo;
            that.navigatepageNums =
              that.queryCriteriaData.navigatepageNums.length;
          } else {
            this.$message.error("列表", res.msg);
            this.loading = false;
          }
        })
        .catch(() => {
          console.log("列表");
          this.loading = false;
        });
    },

    edit(titel) {
      this.dialogTitle = titel;
      this.formObjShow = this.formObj;
      this.btnShow = true;
      if (titel == "新增") {
        this.dialogEditVisible = true;
        this.formData = {
          fId: "",
          fQualitygridclass: "", //质量网格类别
          fQualitygridclassid: "", //质量网格类别id
          fDuty: "", //职务
          //  fChargeusername:'', //责任人姓名
          // fChargeuserid:'', //责任人id
          fChargeusername: "", //责任人姓名
          fChargeuserid: "", //责任人id
          fPhone: "", //联系方式
          fQualitydutydetail: "", //质量责任内容
          fNote: "", //备注
          fInformantname: this.userInfo.realName, //填报人姓名
          fInformantid: this.userInfo.userId, //填报人id
          fInformantdates: this.timeYMD, //填报日期
        };
      } else if (titel == "编辑") {
        if (this.fId != "" && this.fId != null) {
          if (this.row.fStatus == "编辑中") {
            this.loadingEditDialog = true; //弹框loading
            this.dialogEditVisible = true;
            this.getConcrete(this.fId);
          } else {
            return this.$message.error("本条数据不可编辑");
          }
        } else {
          return this.$message.error("请先选择需要编辑的数据");
        }
      }
    },
    // 获取详情
    getConcrete(id) {
      getQualityDutyByFid({ fId: id })
        .then((res) => {
          if (res.errcode == 0) {
            this.loadingEditDialog = false; //弹框loading
            this.formData = res.data.yjQmpMsQualitydutyManagement;

            //填报人
            if (
              this.formData.fInformantname == "" ||
              this.formData.fInformantname == null ||
              this.formData.fInformantid == "" ||
              this.formData.fInformantid == null
            ) {
              this.formData.fInformantname = this.userInfo.realName;
              this.formData.fInformantid = this.userInfo.userId;
            }
            //填报日期
            if (
              this.formData.fInformantdates == "" ||
              this.formData.fInformantdates == null
            ) {
              this.formData.fInformantdates = this.timeYMD;
            }
          } else {
            console.log("详情接口", res.errcode);
          }
        })
        .catch((err) => {
          console.log(err.msg);
        });
    },
    // 保存
    yj_saveForm() {
      if (this.$refs.publicForm0.submitForm()) {
        this.saveData = {
          fId: this.formData.fId,
          userId: this.userInfo.userId,
          userName: this.userInfo.realName,
          fProjectname: this.userInfo.projectName, // 当前登录人项目名称
          fProjectid: this.userInfo.projectId, // 当前登录人项目ID
          fCompanyname: this.userInfo.companyName, // 当前登录人标段名称
          fCompanyid: this.userInfo.companyId, // 当前登录人标段ID
          fQualitygridclass: this.formData.fQualitygridclass, //质量网格类别
          fQualitygridclassid: this.formData.fQualitygridclassid, //质量网格类别id
          fChargeusername: this.formData.fChargeusername, //责任人姓名
          fChargeuserid: this.formData.fChargeuserid, //责任人id
          fDuty: this.formData.fDuty, //职务
          fPhone: this.formData.fPhone, //联系方式
          fQualitydutydetail: this.formData.fQualitydutydetail, //质量责任内容
          fNote: this.formData.fNote, //备注
          fInformantname: this.formData.fInformantname, //填报人姓名
          fInformantid: this.formData.fInformantid, //填报人id
          fInformantdates: this.formData.fInformantdates, //填报日期
        };
        saveQualityDuty(this.saveData)
          .then((res) => {
            if (res.errcode == 0) {
              this.yj_searchForm(this.getList);
              this.dialogEditVisible = false;
              this.$message.success("新增成功");
            } else {
              this.$message.error(res.msg);
              console.log("接口报错");
            }
          })
          .catch((error) => {
            console.log(error);
          });
      } else {
        console.log("error");
      }
    },

    // 提交
    SubmitText(id) {
      if (id != "" && id != null) {
        if (this.row.fStatus == "编辑中") {
          this.$confirm("是否继续提交?", "提示", {
            confirmButtonText: "确定",
            cancelButtonText: "取消",
            type: "warning",
          })
            .then(() => {
              this.loading = true;
              commitQualityDuty({
                fId: id,
                userId: this.userInfo.userId,
                userName: this.userInfo.realName,
              })
                .then((res) => {
                  if (res.errcode == 0) {
                    this.loading = false;
                    this.yj_searchForm(this.getList);
                    this.$message.success("提交成功");
                  } else {
                    this.$message.error("提交失败", res.msg);
                    this.loading = false;
                  }
                })
                .catch(() => {
                  console.log("提交失败");
                  this.loading = false;
                });
            })
            .catch(() => {
              this.$message.info("取消提交");
            });
        } else {
          return this.$message.error("本条数据不可提交");
        }
      } else {
        return this.$message.error("请先选择需要提交的数据");
      }
    },

    // 删除
    rowDelete(id) {
      if (id != "" && id != null) {
        if (this.row.fStatus == "编辑中") {
          this.$confirm("此操作将永久删除该数据, 是否继续?", "提示", {
            confirmButtonText: "确定",
            cancelButtonText: "取消",
            type: "warning",
          })
            .then(() => {
              this.loading = true;
              deleteQualityDuty({ fId: id })
                .then((res) => {
                  if (res.errcode == 0) {
                    this.loading = false;
                    this.yj_searchForm(this.getList);
                    this.$message.success("删除成功");
                  } else {
                    this.$message.error("删除失败", res.msg);
                    this.loading = false;
                  }
                })
                .catch(() => {
                  console.log("删除失败");
                  this.loading = false;
                });
            })
            .catch(() => {
              this.$message("取消删除");
            });
        } else {
          return this.$message.error("本条数据不可删除");
        }
      } else {
        return this.$message.error("请先选择需要删除的数据");
      }
    },

    // 获取页面容器高度
    getHeight() {
      var h = document.documentElement.clientHeight; //获取页面可见高度
      this.dialogHeight = h * 0.36 + "px";
      this.MemberDialogHeight = h * 0.66 + "px";
    },
    // 点击查看
    yj_viewForm(row) {
      this.fId = row.fId;
      this.editText(this.fId);
    },

    // 查看
    editText(id) {
      this.formObjShow = this.formObjLook;
      this.dialogTitle = "查看";
      this.btnShow = false;
      if (id != "" && id != null) {
        this.loadingEditDialog = true; //弹框loading
        this.dialogEditVisible = true;
        getQualityDutyByFid({ fId: id })
          .then((res) => {
            if (res.errcode == 0) {
              this.loadingEditDialog = false; //弹框loading
              this.formData = res.data.yjQmpMsQualitydutystationManagement;
            } else {
              this.$message.error("查看", res.msg);
              this.loadingEditDialog = false;
            }
          })
          .catch(() => {
            console.log("查看---详情接口报错");
            this.loadingEditDialog = false;
          });
      } else {
        return this.$message.error("请先选择需要查看的数据");
      }
    },

    selectChange(value, index, prop) {
      return value, index, prop;
    },
    inputChange(value, index, prop) {
      return value, index, prop;
    },
    inputFocus(index, prop) {
      this.propText = prop;
      console.log(index, prop);
      if (prop == "fChargeusername") {
        this.treeText.companyId = this.userInfo.companyId;
        this.treeText.userId = this.userInfo.userId;
        this.getBaseCompanyList(this.treeText);
      }
    },

    getData() {
      var time = new Date();
      const y = time.getFullYear();
      const m = (time.getMonth() + 1 + "").padStart(2, "0");
      const d = (time.getDate() + "").padStart(2, "0");
      this.timeYMD = `${y}-${m}-${d}`;
    },
    // 点击当前
    rowChange(val) {
      this.row = val;
      this.fId = val.fId;
    },
    // 树选人
    // 树结构
    getBaseCompanyList(data) {
      this.personList = [];
      this.departmentList = [];
      this.dialogEditVisibleTree = true;
      this.loadingEditDialogTree = true;
      getUserCompanyTreeList(data)
        .then((res) => {
          this.loadingEditDialogTree = false;
          if (res.errcode == 0) {
            this.companyTreeData = res.data.userCompanyTreeList;
            this.companyInfo = this.tranListToTreeData(
              res.data.userCompanyTreeList
            );
          } else {
            this.$message.error("获取组织机构单位", res.msg);
          }
        })
        .catch((error) => {
          console.log("获取组织机构单位,接口报错", error);
        });
    },
    tranListToTreeData(data) {
      let result = [];
      if (!Array.isArray(data)) {
        return result;
      }
      // 清除已存在的数据  重新赋值
      data.forEach((item) => {
        delete item.children;
      });

      let map = {};
      data.forEach((item) => {
        map[item.fCompanyid] = item;
      });

      data.forEach((item) => {
        let parent = map[item.fParentid];
        if (parent) {
          (parent.children || (parent.children = [])).push(item);
        } else {
          result.push(item);
        }
      });
      return result;
    },
    //根据树  调部门
    selectCompany(e) {
      this.getBaseDepartmentUser(e.fCompanyid);
    },
    // 部门管理-查询部门列表以及下属人员
    getBaseDepartmentUser(id) {
      getBaseDepartmentUser({ fCompanyid: id })
        .then((res) => {
          if (res.errcode == 0) {
            this.departmentList = res.data.childList;
          } else {
            this.$message.error("部门管理-查询部门列表以及下属人员", res.msg);
          }
        })
        .catch((error) => {
          console.log("部门管理-查询部门列表以及下属人员,接口报错", error);
        });
    },
    // 选择部门
    seletDepartment(e) {
      this.num = e.fDepartmentId;
      this.personList = [];
      let obj = {};
      // let reduce = [];
      this.personList = e.personList.reduce(function (item, next) {
        //item为没有重复id的数组，next为当前对象
        obj[next.fUserid] ? "" : (obj[next.fUserid] = true && item.push(next));
        return item;
      }, []);
    },
    selectRealname(e, data) {
      data.map((item) => {
        if (e == item.fUserid) {
          this.newData = item;
        }
      });
    },

    // 保存
    submitMember() {
      if (this.propText == "fChargeusername") {
        this.formData.fChargeuserid = this.newData.fUserid;
        this.formData.fChargeusername = this.newData.fRealname;
      }
      this.dialogEditVisibleTree = false;
    },
    // 树选人
    // 多选方法
    selectionChange() {},
    // 排序方法
    sortChange() {},
  },
};
</script>

<style scoped lang="less">
.printTables {
  background: #fff;
  display: flex;
  justify-content: end;
  padding: 5px;
  margin-top: 10px;
}

.dialogBody {
  padding: 3px 20px;
  height: 80%;

  overflow-y: auto;
}

.baseTitle {
  /* border: 1px solid #0c204d; */
  border-bottom: 1px solid #0c204d;
  height: 30px;
  line-height: 30px;
  position: relative;
  padding-left: 15px;
}

.baseTitle::after {
  display: block;
  content: "";
  height: 30px;
  width: 5px;
  position: absolute;
  left: 0;
  top: 0;
  background: #0c204d;
}
/* 弹框 */

.mouldForm /deep/ .el-col-12 .el-form-item:first-child .el-input__suffix {
  left: 84% !important;
}
.publicForm .mouldForm /deep/ .el-form-item__content {
  margin-left: 105px !important;
}
/* 树选人 */

.addMemberCheckBox {
  display: flex;

  .addMemberCheckTree {
    width: 30%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(221, 221, 221, 1);
    box-sizing: border-box;

    .companyBox {
      height: 70%;
      box-sizing: border-box;
      overflow-y: auto;
    }

    .departmentBox {
      height: 30%;
      border-top: 0.5px solid rgba(221, 221, 221, 1);
      /* border: 1px solid red; */
      display: flex;
      flex-wrap: wrap;
      align-content: flex-start;
      overflow: hidden;
      overflow-y: auto;

      .departmentTitle {
        width: 77px;
        text-align: center;
        height: 40px;
        margin: 5px;
        // border: 1px solid green;
        border-radius: 8px;
        background: #d4daea;
        overflow: hidden;

        a {
          width: 100%;
          height: 100%;
          display: block;
          text-decoration: none;
        }
      }
    }
  }

  .selectMemberLeft {
    display: flex;
    align-items: center;
  }

  .addMemberCheckLeft {
    width: 70%;
    padding: 0 0 0 20px;
    border-top: 1px solid rgba(221, 221, 221, 1);
    border-bottom: 1px solid rgba(221, 221, 221, 1);
    border-right: 1px solid rgba(221, 221, 221, 1);

    .addMemberCheck {
      width: 150px;
      height: 64px;
      border-radius: 2px;
      display: flex;
      align-items: center;
      position: absolute;
      top: 0;
      left: 0;
    }
  }
}

.newlyAdded_btns {
  height: 8%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.addMemberCheck .MemberIcon {
  height: 62px;
  width: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(241, 241, 241, 1);
}

.MemberIcon img {
  width: 37.81px;
  height: 39.38px;
  border-radius: 50%;
}

.MemberDetailInfos {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;

  .name {
    color: rgba(51, 51, 51, 1);
    font-size: 12px;
    height: 20px;
    line-height: 20px;
  }

  .hostName {
    color: rgba(128, 125, 125, 1);
    font-size: 12px;
    height: 20px;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.MemberIcon .name {
  color: rgba(51, 51, 51, 1);
  font-size: 12px;
  height: 20px;
  line-height: 20px;
}

.MemberIcon .hostName {
  color: rgba(128, 125, 125, 1);
  font-size: 12px;
  height: 20px;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activetext {
  color: rgba(197, 227, 255, 1);
  background: #2b5a9d;
}

// .MemberDetailInfo::after {
//   position: absolute;
//   width: 30px;
//   height: 30px;
//   display: block;
//   background: url("../../../assets/img/organization/yes.png") no-repeat;
//   background-size: 100% 100%;
//   right: 0;
//   top: 0;
// }

// .deleteUser {
//   position: absolute;
//   width: 22px;
//   height: 22px;
//   display: block;
//   background: url("../../../assets/img/organization/no.png") no-repeat;
//   background-size: 100% 100%;
//   right: 0;
//   top: 0;
// }

.samllDialogs {
  display: flex;
  margin: 0 20px;
  padding-top: 50px;
  .treeModule {
    flex: 1;
  }
}

.addMemberCheckLeft /deep/ .el-radio-button {
  display: inline-block;
  width: 150px;
  height: 64px;
  position: relative;
  margin: 8px;
  border-radius: 2px;
  overflow: hidden;
  /* border: 1px solid rgba(222, 222, 222, 1); */
}

.addMemberCheckLeft /deep/ .el-radio-button__inner {
  border: 1px solid rgba(222, 222, 222, 1);
  border-radius: 2px;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.addMemberCheckLeft /deep/ .el-radio-group {
  flex-wrap: wrap;
  font-size: 0;
  display: flex;
  /* flex-direction: column; */
}
/* 树选人 */
/* 弹框 */
</style>